<?php

set_include_path(get_include_path().PATH_SEPARATOR.'./lib');
require_once('Doctrine.php');

spl_autoload_register(array('Doctrine', 'autoload'));

$dsn = 'sqlite:db/yabzs.sqlite';
$user = '';
$password = '';

$dbh = new PDO($dsn, $user, $password);
$conn = Doctrine_Manager::connection($dbh);
$conn->setOption('username', $user);
$conn->setOption('password', $password);

$manager = Doctrine_Manager::getInstance();
$manager->setAttribute(Doctrine::ATTR_AUTOLOAD_TABLE_CLASSES, true);

Doctrine::loadModels('src/model');

?>